package com.espeaker.sdk.model;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;

import com.espeaker.sdk.utils.JsonUtils;
import com.espeaker.sdk.utils.TimeUtil;

public class Revisers {
	public int id;
	public String avatar;
	public String name;
	public String des;
	public int order;
	public List<Revisers> parse(JSONArray jArray) {
		List<Revisers> mList = new ArrayList<Revisers>();
		try {
			if (jArray != null) {
				for (int i = 0; i < jArray.length(); i++) {
					Revisers obj=new Revisers();
					obj.avatar="http://miao.yishuodian.com/images/revisers/"
						+JsonUtils.getString(jArray.getJSONObject(i), "id")+".jpg?time="+TimeUtil.getCurrentTimeStamp();
					obj.name=JsonUtils.getString(jArray.getJSONObject(i), "username");
					obj.des=JsonUtils.getString(jArray.getJSONObject(i), "description");
					mList.add(obj);
				}
			}
		} catch (Exception er) {
		}
		return mList;
	}
}
